/* Projects Section Styling */
.projects {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.projects-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.projects-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 87, 255, 0.08), rgba(0, 184, 255, 0.05));
    opacity: 0.5;
}

.projects-circle:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    animation: float-slow 15s infinite alternate ease-in-out;
}

.projects-circle:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    animation: float-slow 18s infinite alternate-reverse ease-in-out;
}

.project-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.project-category {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.project-category.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 87, 255, 0.2);
}

.project-category:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 87, 255, 0.2);
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 87, 255, 0.8);
    color: white;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 1;
    font-weight: 500;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.project-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.client-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-year {
    font-size: 0.85rem;
    background: rgba(0, 87, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: var(--accent-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.project-link:hover::after {
    width: 100%;
}

.project-featured {
    grid-column: span 2;
}

.project-featured .project-content {
    padding: 2rem;
}

.project-featured .project-title {
    font-size: 1.8rem;
}

.project-featured .project-description {
    font-size: 1.05rem;
}

.project-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.project-control {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.project-control:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 87, 255, 0.2);
}

.project-cta {
    text-align: center;
    margin-top: 4rem;
}

.highlight-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.projects-empty-state {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-category {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .project-title {
        font-size: 1.2rem;
    }
    
    .project-featured .project-title {
        font-size: 1.5rem;
    }
}
